package com.itheima.domain;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

public class User implements Serializable {

    private Integer id;
    private List<Admin> accountList;
    private Map<String, Admin> accountMap;
    private String username;
    private String password;
    private Integer year;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public List<Admin> getAccountList() {
        return accountList;
    }

    public void setAccountList(List<Admin> accountList) {
        this.accountList = accountList;
    }

    public Map<String, Admin> getAccountMap() {
        return accountMap;
    }

    public void setAccountMap(Map<String, Admin> accountMap) {
        this.accountMap = accountMap;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getYear() {
        return year;
    }

    public void setYear(Integer year) {
        this.year = year;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", accountList=" + accountList +
                ", accountMap=" + accountMap +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", year=" + year +
                '}';
    }
}
